<?php
class warrior{
	private $id = 0;
	private $job = 0;
	private $level = 0;
	private $adroitly = 0;

	private $name = '';
	private $hp = 0;
	private $attack = 0;
	private $defense = 0;
	private $distance = 0;
	private $attack_ts = 0;

	private $last_attack_ts = 0;

	public function player($job, $id, $name)
	{
		$this->id = $id;
		$this->job = $job;
		$this->level =1;
		$this->initProperty();
	}
	
	public function initProperty($job, $level)
	{
		$ratio = $this->job_ratio[$job];
		$this->hp = $ratio[0] * 100 * $level;
		$this->attack = $ratio[0] * 40 * $level;
		$this->defense = $ratio[0] * 10 * $level;
		$this->adroitly = $ratio[0] * 30 * $level;
		
		
	}
}